package com.yunji.framework_template.biz.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunji.framework_template.common.web.Page;
import com.yunji.framework_template.orm.persistence.mapper.NewsCommentsMapper;
import com.yunji.framework_template.orm.persistence.model.NewsComments;

/**
 * Created by fenglibin on 2018/11/26.
 */
@Service
public class NewsCommentsService {

    @Autowired
    private NewsCommentsMapper newsCommentsMapper;

    public int deleteByPrimaryKey(Integer id) {
        return newsCommentsMapper.deleteByPrimaryKey(id);
    }

    public int insert(NewsComments record) {
        return newsCommentsMapper.insert(record);
    }

    public int insertSelective(NewsComments record) {
        return newsCommentsMapper.insertSelective(record);
    }

    public NewsComments selectByPrimaryKey(Integer id) {
        return newsCommentsMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(NewsComments record) {
        return newsCommentsMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(NewsComments record) {
        return newsCommentsMapper.updateByPrimaryKey(record);
    }

    public List<NewsComments> selectByCondition(NewsComments record) {
        return newsCommentsMapper.selectByCondition(record);
    }

    public List<NewsComments> selectAll() {
        return newsCommentsMapper.selectAll();
    }

    public List<NewsComments> selectByPage(Page<NewsComments> page) {
        return newsCommentsMapper.selectByPage(page);
    }

    public Integer count(NewsComments record) {
        return newsCommentsMapper.count(record);
    }

    public int deleteByCondition(NewsComments record) {
        return newsCommentsMapper.deleteByCondition(record);
    }

}
